﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BRentCar
    {
        private readonly DRentCar _dRentCar = new DRentCar();
        public bool PhoneNumberExists(string phoneNumber)
        {
            return _dRentCar.PhoneNumberExists(phoneNumber);
        }
         
        public bool Add(Model.RentCarInfo model)
        {
            return _dRentCar.Add(model);
        }

        public bool Update(Model.RentCarInfo model)
        {
            return _dRentCar.Update(model);
        }

        public bool Delete(int id)
        {
            return _dRentCar.Delete(id);
        }
         
        public Model.RentCarInfo GetModel(int id)
        {
            return _dRentCar.GetModel(id);
        }

        public DataSet GetList(string strWhere)
        {
            return _dRentCar.GetList(strWhere);
        }
    }
}
